<%--
  Created by IntelliJ IDEA.
  User: user
  Date: 2024/11/25
  Time: 16:22
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%--jstl--%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
    <style>
        /* 全局样式重置，去除默认的边距和填充 */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        /* 页面主体样式 */
        body {
            font-family: Arial, sans-serif;
            background-color: #f4f4f4;
        }

        /* 标题样式 */
        h1 {
            color: #333;
            text-align: center;
            margin-top: 20px;
        }

        /* 图片样式 */
        img {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            object-fit: cover;
            margin-bottom: 10px;
        }

        /* 段落样式 */
        p {
            color: #666;
            text-align: center;
            margin-bottom: 10px;
        }

        /* 表单样式 */
        form {
            text-align: center;
            margin-top: 20px;
        }

        form input[type="text"] {
            padding: 10px;
            width: 300px;
            border: 1px solid #ccc;
            border-radius: 5px;
            margin-right: 10px;
        }

        form input[type="submit"] {
            padding: 10px 20px;
            background-color: #007BFF;
            color: white;
            border: none;
            border-radius: 5px;
            cursor: pointer;
        }

        /* 表格样式 */
        table {
            width: 80%;
            margin: 20px auto;
            border-collapse: collapse;
            background-color: white;
        }

        table th,
        table td {
            padding: 10px;
            text-align: center;
            border: 1px solid #ccc;
        }

        table th {
            background-color: #f2f2f2;
        }
    </style>
</head>
<body>
<img width="80px" src="Res/images/item/${admin.admin_profile_picture_src}" alt="">
<%--EL表达式--%>
<p>${admin.admin_nickname}</p>
<h1>登录完成</h1>
<form action="getUser">
    <input type="text" name="queryName" placeholder="名称">
    <input type="submit">
</form>

<table border="1">
    <tr>
        <th>编号</th>
        <th>账号</th>
        <th>昵称</th>
        <th>操作</th>
    </tr>
    <c:forEach var="user" items="${userList}">
        <tr>
            <td>${user.user_id}</td>
            <td>${user.user_name}</td>
            <td>${user.user_nickname}</td>
            <td><a href="editUser?user_id=${user.user_id}">编辑</a></td>
        </tr>
    </c:forEach>
</table>

</body>
</html>
